FROM python:3.6
COPY . /app
WORKDIR /app
ADD requirement.txt /home/
RUN pip install -r /home/requirement.txt -i https://pypi.douban.com/simple/
EXPOSE 8080
RUN pip install uwsgi -i https://pypi.douban.com/simple/
VOLUME ["/home"]
CMD ["python", "manage.py", "runserver","0.0.0.0:8080"]